<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang=ko>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>session.jsp</title>
	<link rel='stylesheet' type='text/css' href='./css/main.css'>
	<script src='./js/session.js'></script>
</head>
<body>
	<%
	String d = (String)session.getAttribute("data");
	if(d == null)
		d=""; 
	 %>
	<div class=title>Session Test</div>
	<form id='session_form' method='post'>
		<label>세션에 저장될 데이터</label>
		<input type='text' name='data' id='data' value='<%=d%>' placeholder = '세션에 저장될 데이터'>
		<br>
		<input type=button id='okBtn' value='저장'>
	</form>
	
	<script>Init();</script>
</body>
</html>